﻿/**
 * @file MaterialIsotropicSolidsWapper.h
 * @brief 各向同性固体材料 相关的python接口
 * @author wangning (2185896382@qq.com)
 * @date 2024-12-03
 */
#ifndef _PY_SEA_MATERIALIsotropicSolids_WAPPER_H___
#define _PY_SEA_MATERIALIsotropicSolids_WAPPER_H___

#include <QString>
#include <QObject>
#include "PythonInterfaceAPI.h"
#include "FITK_Component/FITKAcousticsPhysics/PyFITKMaterialsIsotropicSolids.h"

class IsotropicSolids : public Acoustics::PyFITKMaterialsIsotropicSolids
{
public:
    explicit IsotropicSolids(const QString& name);
    explicit IsotropicSolids();
    virtual ~IsotropicSolids() = default;

};

/**
 * @brief 各向同性固体材料相关PYTHON接口装饰
 * @author wangning (2185896382@qq.com)
 * @date 2024-12-03
 */
class PythonInterfaceAPI MaterialIsotropicSolidsWapper : public QObject
{
    Q_OBJECT
public slots:
    IsotropicSolids* new_IsotropicSolids();

    void delete_IsotropicSolids(IsotropicSolids* obj);
    /**
     * @brief 在Python解释器中通过名称获取对象
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    IsotropicSolids* static_IsotropicSolids_GetIsotropicSolids(const QString& name);
    /**
     * @brief 获取名称
     * @author wangning (2185896382@qq.com)
     * @date 2024-12-03
     */
    QString getName(IsotropicSolids* obj);
    /**
     * @brief  设置密度和流阻率
     * @param[i]  density：密度
     * @param[i]  flowResistivity：流阻率
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-03
     */
    void setName(IsotropicSolids* obj, const QString& name);
    /**
     * @brief  设置属性
     * @param[i]  density：密度
     * @param[i]  tensileModulus：拉伸模量
     * @param[i]  shearModulus：剪切模量
     * @param[i]  poissonRatio：泊松比
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-03
     */
    void setIsotropicSolidsProp(IsotropicSolids * obj, double density, double tensileModulus, double shearModulus, double poissonRatio);
    /**
     * @brief  创建材料
     * @param[i]  name：材料名称
     * @author wangning (2185896382@qq.com)
     * @date   2024-12-03
     */
    void createMaterial(IsotropicSolids* obj, const QString& name);
};

#endif
